﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AgriculturalMachinery.Models
{
    public partial class HomeViewModel
    {
        public IQueryable QueryClient { get; private set; }
        public IQueryable QueryNotify { get; private set; }
        
        /// <summary>
        /// 当前登录用户
        /// </summary>
        public Clients CurrentClient;
        public IQueryable iq;
        public HomeViewModel()
        {

            AccountRepository ar = new AccountRepository();
            QueryClient = ar.FindAllClients();

            NotifyRepository nr = new NotifyRepository();
            QueryNotify = nr.FindAllNotify();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}
